package com.seeTools.next.common.constant;

/**
 * @Author: seeTools
 * @Date: 2024/4/16  8:55
 * @Version 1.0
 */
public interface Constants {

    String ADMIN_USERNAME = "admin";


    /**
     * 字典類型
     */
    interface DictType {

        /**
         * 字典正常状态
         */
        String DICT_NORMAL = "1";

        /**
         * 字典不正常状态
         */
        String DICT_UN_NORMAL = "0";
    }


    /**
     * 菜單類型
     */
    interface MenuType {

        String MENU = "menu";
        String BUTTON = "btn";
    }


    /**
     * 緩存key
     */
    interface CacheKey {

        String PREFIX = "cache:";

        String USER = PREFIX + "user";

        String USER_ROLE_LIST = PREFIX + "userRoleList";

        String ROLE_LIST_TENANT_ID = PREFIX + "roleList:tenantId";

        String MENU_LIST_USER_ID = PREFIX + "menuList:userId";

        String ROLE_MENU_LIST = PREFIX + "roleMenuList";

        String TENANT = PREFIX + "tenant";

        /**
         * 数据字典
         */
        String SYS_DICT = PREFIX + "sys_dict";

        /**
         * OSS配置
         */
        String SYS_OSS_CONFIG = "sys_oss_config";

    }

}
